package org.wyz.observer_after;


public interface SubClient {
    void consume(String msg);

    default void subscribe(LogPub pub) {
        pub.addSubClient(this);
    }

    default void unsubscribe(LogPub pub) {
        pub.removeSubClient(this);
    }

}
